package com.ljl.spring.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.*;
@Component
public class Student {
    @Value("ljl")
    private String name;
    private Address address;

    private String[] books;
    private List<String> hobbdy;
//    身份证
    private Map<String,String> card;
    private Set<String> games;
    private Properties info;

    public Student(String name, Address address, String[] books,
                   List<String> hobbdy, Map<String, String> card,
                   Set<String> games, Properties info) {
        this.name = name;
        this.address = address;
        this.books = books;
        this.hobbdy = hobbdy;
        this.card = card;
        this.games = games;
        this.info = info;
    }
    Student(){}
    public Map<String, String> getCard() {
        return card;
    }

    public void setCard(Map<String, String> card) {
        this.card = card;
    }

    public String getName() {
        return name;
    }

    public Address getAddress() {
        return address;
    }

    public String[] getBooks() {
        return books;
    }

    public List<String> getHobbdy() {
        return hobbdy;
    }

    public Set<String> getGames() {
        return games;
    }

    public Properties getInfo() {
        return info;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public void setBooks(String[] books) {
        this.books = books;
    }

    public void setHobbdy(List<String> hobbdy) {
        this.hobbdy = hobbdy;
    }

    public void setGames(Set<String> games) {
        this.games = games;
    }

    public void setInfo(Properties info) {
        this.info = info;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", address=" + address.toString() +
                "\n, books=" + Arrays.toString(books) +
                ", hobbdy=" + hobbdy +
                ", card=" + card +
                ", games=" + games +
                ", info=" + info +
                '}';
    }
}
